<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);
%>

<style>

.arrow-right {
width:20px;margin-top:7px;height:20px;float:right;font-size:0;
line-height: 0;
border-width: 10px;
border-color: #009388;
border-right-width: 0;
border-style: dashed;
border-left-style: solid;
border-top-color: transparent;
border-bottom-color: transparent;
}


.arrow-bottom {
width:20px;margin-top:5px;height:20px;float:right;font-size:0;
font-size: 0;
line-height: 0;
border-width: 10px;
border-color: #009388;
border-bottom-width: 0;
border-style: dashed;
border-top-style: solid;
border-left-color: transparent;
border-right-color: transparent;
}

</style>
<script type="text/javascript" src="${basePath}assets/layer/layer.js"></script>
<script type="text/javascript">
	function loadContent(url) {
		$("#mainContent").attr("src", url);
	}
	function setIframeHeight(iframe) {
	   if (iframe) {
		var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
		if (iframeWin.document.body) {
			
		iframe.height = iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight;
		
		}
		iframe.style.overflow='auto';
		
		};
	}
	window.onload = function () {
	    setIframeHeight(document.getElementById('mainContent'));
	};
	/* function homePageFormPost(){
	    $("#homePageForm").submit();
	} */
</script>
<div id="div_TC">
	<div class="TC_title">
		<!-- <h3 style="color:red">红色*号项为必填项</h3> -->
		<input type="button" style="width:90px;" onclick="exportAllWord()" class="btn" value="导出">
		<%-- <a href="${basePath}/medical_record/print?visitGuid=${visitGuid }" class="btn">打印</a>&nbsp; --%>
		<!-- <span style="color:red">红色*号项为必填项</span> -->
		<input type="hidden" id="month" value="${month}">
	
		
	</div>
	
	<div class="TC_menu">
		<h3>${statisticalReportParam.statics1Name}统计指标</h3>
		<ul role="tablist">
			<li class="TC_li active" style="text-align:left"><a onclick="loadContent('${basePath}/report/edit_home_page_basic_form')" aria-controls="baseInfo" role="tab" data-toggle="tab">&nbsp;&nbsp;门急诊统计指标</a>
			
			
			</li>
			
			<li class="TC_li" style="text-align:left"><a onclick="showInHospStic(this)"   aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;住院统计指标 <div id="flag_1"  class="arrow-right"></div></a>
			
			</li>
			
			<li class="TC_li show_1" style="text-align:left;display:none"><a onclick="loadContent('${basePath}/report/bedRelatedIndicatorsForm')" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;床位指标</a>
			</li>
			
			<li class="TC_li show_1" style="text-align:left;display:none"><a onclick="loadContent('${basePath}/report/outNumsAndDeathRateForm')" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;出院人数及死亡率</a>
			</li>
			<li class="TC_li show_1" style="text-align:left;display:none"><a onclick="loadContent('${basePath}/report/getAvgInHospDays')" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;平均住院天数</a>
			</li>
			<li class="TC_li show_1" style="text-align:left;display:none"><a onclick="loadContent('${basePath}/report/opNumberInfo')" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;手术及操作人次数</a>
			</li>
			
			<li class="TC_li show_1" style="text-align:left;display:none"><a onclick="loadContent('${basePath}/report/costFeeInfo')" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;住院费用指标</a>
			</li>
	
			<li class="TC_li show_1" style="text-align:left;display:none"><a onclick="loadContent('${basePath}/report/outPatientEachDeptInfo')" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;各科室出院患者统计指标</a>
			</li>
			
			
			
			
			
			<li class="TC_li" style="text-align:left" style="position:absolute"><a onclick="showDiagStic()" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;疾病诊治顺位<div id="flag_2" class="arrow-right"></div></a>
			</li>
	
			<li class="TC_li show_2" style="text-align:left;display:none"><a onclick="loadContent('${basePath}/report/diseaseOrderTop20')" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;全院疾病顺位</a>
			</li>
			<li class="TC_li show_2" style="text-align:left;display:none"><a onclick="loadContent('${basePath}/report/diseaseOrderTop10ByDept')" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;临床专科疾病顺位</a>
			</li>
			
		
			<li class="TC_li" style="text-align:left" style="position:absolute"><a onclick="showOpStic()" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;手术顺位<div id="flag_3" class="arrow-right"></div></a>
			</li>
			
			
			<li class="TC_li show_3" style="text-align:left;display:none"><a onclick="loadContent('${basePath}/report/wholeHospitaSurgicalSequence')" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;全院手术顺位</a>
			</li>
			<li class="TC_li show_3" style="text-align:left;display:none"><a onclick="loadContent('${basePath}/report/clinicalSurgicalSequence')" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;临床专科手术顺位</a>
			</li>
			
			
			<li class="TC_li" style="text-align:left"><a onclick="loadContent('${basePath}/report/deathReasonSequence')" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;死因顺位指标</a>
			</li>
			
	<li class="TC_li" style="text-align:left" style="position:absolute"><a onclick="showSatisfaction()" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;医疗服务与质量安全<div id="flag_4" class="arrow-right" ></div></a>
			</li>
			
			<!--
			
			<li class="TC_li show_4" style="text-align:left;display:none"><a onclick="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;门诊患者满意度调查情况</a>
			</li>
			
			-->
			<li class="TC_li show_4" style="text-align:left;display:none"><a onclick="loadContent('${basePath}/report/qcBackInfo')" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;重返类指标</a>
			</li>
			<li class="TC_li show_4" style="text-align:left;display:none"><a onclick="loadContent('${basePath}/report/qcAcquiredInfo')" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;获得性指标</a>
			</li>
			<li class="TC_li show_4" style="text-align:left;display:none"><a onclick="loadContent('${basePath}/report/major20DiagInfo')" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;重点病种指标</a>
			</li>
			<li class="TC_li show_4" style="text-align:left;display:none"><a onclick="loadContent('${basePath}/report/major20OperationInfo')" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;重点手术指标</a>
			</li>
			<li class="TC_li show_4" style="text-align:left;display:none"><a onclick="loadContent('${basePath}/report/majorTumourNonOpInfo')" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;重点肿瘤非手术治疗</a>
			</li>
					<li class="TC_li show_4" style="text-align:left;display:none"><a onclick="loadContent('${basePath}/report/majorTumourOpInfo')" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;重点肿瘤手术治疗</a>
			</li>
			
			
			<li class="TC_li" style="text-align:left" style="position:absolute"><a onclick="showSatisfaction()" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;患者满意度调查<div id="flag_4" class="arrow-right" ></div></a>
			</li>
			
			<!--
			
			<li class="TC_li show_4" style="text-align:left;display:none"><a onclick="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;门诊患者满意度调查情况</a>
			</li>
			
			-->
			<li class="TC_li show_4" style="text-align:left;display:none"><a onclick="loadContent('${basePath}/report/outpatientSatisfaction')" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;门诊患者满意度</a>
			</li>
			<li class="TC_li show_4" style="text-align:left;display:none"><a onclick="loadContent('${basePath}/report/outSatisContrastAnalysisInfo')" aria-controls="bed" role="tab" data-toggle="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;患者满意度调查对比分析</a>
			</li>
			
			
			
			
			
			
	
	
	
		</ul>
	</div>
	<div class="content_list">
		<div class="tab-content">
			<div role="tabpanel" class="tab-pane active" id="baseInfo">
				<iframe id="mainContent" style="border: 0px;" width="100%" height="100%"   src="${basePath}report/edit_home_page_basic_form?month=${month}">	
				</iframe>
			</div>
		</div>
	</div>
	
	<script>
		function showInHospStic(){
			if($(".show_1").css("display")=='none'){
				$(".show_1").show('slow');
				$("#flag_1").removeClass("arrow-right").addClass('arrow-bottom');
			}else{
				$(".show_1").hide('slow');
				$("#flag_1").removeClass("arrow-bottom").addClass('arrow-right');
			}
			//$(".show_1").css("display")=='none'?$(".show_1").show('slow'):$(".show_1").hide('slow');
			//$("#flag_1").removeClass("arrow-right").addClass('arrow-bottom');
		}
		
		function showDiagStic(){
			if($(".show_2").css("display")=='none'){
				$(".show_2").show('slow');
				$("#flag_2").removeClass("arrow-right").addClass('arrow-bottom');
			}else{
				$(".show_2").hide('slow');
				$("#flag_2").removeClass("arrow-bottom").addClass('arrow-right');
			}
			//$(".show_2").css("display")=='none'?$(".show_2").show('slow'):$(".show_2").hide('slow');
		}
		
		function showOpStic(){
			if($(".show_3").css("display")=='none'){
				$(".show_3").show('slow');
				$("#flag_3").removeClass("arrow-right").addClass('arrow-bottom');
			}else{
				$(".show_3").hide('slow');
				$("#flag_3").removeClass("arrow-bottom").addClass('arrow-right');
			}
			//$(".show_3").css("display")=='none'?$(".show_3").show('slow'):$(".show_3").hide('slow');
		}
		
		function showSatisfaction(){
			if($(".show_4").css("display")=='none'){
				$(".show_4").show('slow');
				$("#flag_4").removeClass("arrow-right").addClass('arrow-bottom');
			}else{
				$(".show_4").hide('slow');
				$("#flag_4").removeClass("arrow-bottom").addClass('arrow-right');
			}
			//$(".show_4").css("display")=='none'?$(".show_4").show('slow'):$(".show_4").hide('slow');
		}
		
		
		
		function exportAllWord (){
			 window.location.href ="${basePath}/report/exportAllWord";
		}
		
	
	</script>
</div>
